<?php
/**
 * 商品分类
 * @author quheng <wangwwei@wanthings.com>
 */
class LinkDialogForOldCategoryOption extends CWidget
{
    public $title = '多级分类选择';
    public $name = 'category_id';
    public $value = '';
    public $is_goods = 2;
    public function init()
    {
        return parent::init();
    }

    public function run()
    {
        $is_goods = $this->is_goods;
        $category = Category::model()->getList(array(),0,0,$is_goods);
        $category = $category['list'];
        $value = $this->value;
        $this->render('linkdialogforcategoryoption',compact('category','value'));
    }

}
?>